//package sing.cloud.alibaba.sentinel.service;
//
//import org.springframework.cloud.client.loadbalancer.LoadBalanced;
//import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
//import org.springframework.cloud.openfeign.FeignClient;
//import org.springframework.context.annotation.Bean;
//import org.springframework.stereotype.Component;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//
///**
// * @author xing
// * @date 2022/8/31 23:58
// */
//@FeignClient(name = "cloud-nacos-provider", fallback = EchoServiceFallback.class, configuration = FeignConfiguration.class)
//public interface EchoService {
//    @GetMapping(value = "/echo/{str}")
//    String echo(@PathVariable("str") String str);
//}
//
//class FeignConfiguration {
//    @Bean
//    public EchoServiceFallback echoServiceFallback() {
//        return new EchoServiceFallback();
//    }
//}
//
//class EchoServiceFallback implements EchoService {
//    @Override
//    public String echo(@PathVariable("str") String str) {
//        return "echo fallback";
//    }
//}
